import request from '@/utils/request'

const URL = 'op/echars'

// 房间类型饼图数据
export function pieFromRoomType(data) {
  return request({
    url: URL + '/pieFromRoomType',
    method: 'get'
  })
}

// 订单饼图数据
export function pieFromOrder(data) {
  return request({
    url: URL + '/pieFromOrder',
    method: 'get'
  })
}

// 每个月的订单数量条形图数据
export function axisFromOrder(data) {
  return request({
    url: URL + '/axisFromOrder',
    method: 'get'
  })
}
